import service from '@/utils/request'
// @Tags Device_group
// @Summary 创建设备分组
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Device_group true "创建设备分组"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /device_group/createDevice_group [post]
export const createDevice_group = (data) => {
  return service({
    url: '/device_group/createDevice_group',
    method: 'post',
    data
  })
}

// @Tags Device_group
// @Summary 删除设备分组
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Device_group true "删除设备分组"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /device_group/deleteDevice_group [delete]
export const deleteDevice_group = (params) => {
  return service({
    url: '/device_group/deleteDevice_group',
    method: 'delete',
    params
  })
}

// @Tags Device_group
// @Summary 批量删除设备分组
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除设备分组"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /device_group/deleteDevice_group [delete]
export const deleteDevice_groupByIds = (params) => {
  return service({
    url: '/device_group/deleteDevice_groupByIds',
    method: 'delete',
    params
  })
}

// @Tags Device_group
// @Summary 更新设备分组
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Device_group true "更新设备分组"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /device_group/updateDevice_group [put]
export const updateDevice_group = (data) => {
  return service({
    url: '/device_group/updateDevice_group',
    method: 'put',
    data
  })
}

// @Tags Device_group
// @Summary 用id查询设备分组
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.Device_group true "用id查询设备分组"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /device_group/findDevice_group [get]
export const findDevice_group = (params) => {
  return service({
    url: '/device_group/findDevice_group',
    method: 'get',
    params
  })
}

// @Tags Device_group
// @Summary 分页获取设备分组列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取设备分组列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /device_group/getDevice_groupList [get]
export const getDevice_groupList = (params) => {
  return service({
    url: '/device_group/getDevice_groupList',
    method: 'get',
    params
  })
}

// @Tags Device_group
// @Summary 不需要鉴权的设备分组接口
// @Accept application/json
// @Produce application/json
// @Param data query systemReq.Device_groupSearch true "分页获取设备分组列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /device_group/getDevice_groupPublic [get]
export const getDevice_groupPublic = () => {
  return service({
    url: '/device_group/getDevice_groupPublic',
    method: 'get',
  })
}
